<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name='viewport' content='width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0'>
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <link rel="icon" href="./favicon.ico">
  <link rel="stylesheet" href="./lib/mui/css/mui.css">
  <link rel="stylesheet" href="./lib/fa/css/font-awesome.css">
  <link rel="stylesheet" href="./css/common.css">
  <link rel="stylesheet" href="./css/shopcart.css">
</head>

<body>
  <div class="lt_container">
    <div class="lt_header">
      <a href="javascript:history.back()" class="icon_left">
        <i class="mui-icon mui-icon-back"></i>
      </a>
      <h4>购物车</h4>
      <a href="search.html" class="icon_right">
        <i class="fa fa-search"></i>
      </a>
    </div>
    <div class="lt_main">
      <div id="refreshContainer" class="mui-content mui-scroll-wrapper">
        <div class="mui-scroll">
          <!--数据列表-->
          <ul class="mui-table-view mui-table-view-chevron">
           
          </ul>
        </div>
      </div>
    </div>
    <div class="lt_money">
      <div class="mui-pull-left">
        订单总金额:¥<span class="all">00.00</span>
      </div>
      <a href="#" class="mui-pull-right">生成订单</a>
    </div>
    <div class="lt_footer">
      <ul>
        <li>
          <a href="index.html">
            <i class="fa fa-home"></i>
            <p>首页</p>
          </a>
        </li>
        <li class="active">
          <a href="category.html">
            <i class="fa fa-bars"></i>
            <p>分类</p>
          </a>
        </li>
        <li>
          <a href="shopcart.html">
            <i class="fa fa-shopping-cart"></i>
            <p>购物车</p>
          </a>
        </li>
        <li>
          <a href="user.html">
            <i class="fa fa-user"></i>
            <p>会员中心</p>
          </a>
        </li>
      </ul>
    </div>
  </div>

  <script type="text/template" id="tmp">
    {{ each list v i }}
    <li class="mui-table-view-cell">
      <div class="mui-slider-right mui-disabled">
        <a class="mui-btn mui-btn-blue mui-icon mui-icon-compose btn_change" 
        data-num="{{ v.num }}" data-size="{{ v.size }}" data-product-num="{{ v.productNum }}" data-product-size="{{ v.productSize }}" data-id="{{ v.id }}"></a>
        <a class="mui-btn mui-btn-red mui-icon mui-icon-trash btn_delete" 
        data-id="{{ v.id }}" ></a>
      </div>
      <div class="mui-slider-handle">
        <div class="mui-table-cell">
          <div class="left mui-pull-left">
            <img src="./images/product.jpg" alt="">
            <input type="checkbox" class="check" data-num="{{ v.num }}" data-price="{{ v.price }}">
          </div>
          <div class="right">
            <p class="proName mui-ellipsis-2">{{ v.proName }}</p>
            <p>
              <span class="price">¥{{ v.price }}</span>
              <span class="oldPrice">¥{{ v.oldPrice }}</span>
              <span class="mui-pull-right">{{ v.num }}双</span>
            </p>
            <p>鞋码:{{ v.size }}</p>
          </div>
        </div>
      </div>
    </li>
    {{/each}}
  </script>

  <script src=""></script>
  <script type="text/template" id="tmp2">
    <div class="size">
      尺码
      <% 
        var temp = productSize.split('-')
        for(var i = temp[0] ; i<= temp[1]; i++) {
      %>
      <span class="{{ +size===i? 'active':'' }}">{{ i }}</span>
      <% } %>

    </div>
    <div class="num">
      数量:&nbsp;&nbsp;
      <div class="mui-numbox" data-numbox-step='1' data-numbox-min='1' data-numbox-max='{{ productNum }}'>
        <button class="mui-btn mui-numbox-btn-minus" type="button">-</button>
        <input class="mui-numbox-input" type="number" value="{{ num }}" />
        <button class="mui-btn mui-numbox-btn-plus" type="button">+</button>
      </div>
    </div>
  </script>
  <script src="./lib/mui/js/mui.js"></script>
  <script src="./js/common.js"></script>
  <script src="./lib/artTemplate/template-web.js"></script>
  <script src="./lib/zepto/zepto.min.js"></script>
  <script src="./js/shopcart.js"></script>
</body>

</html>